[ summary] [ package list] [ test cases]
| Tests | Errors | Failures | Success rate | Time(s) |
|---|---|---|---|---|
| 32 | 6 | 1 | 78.12% | 5.08 |
Note: failuresare anticipated and checked for with assertions while errorsare unanticipated.
[ summary] [ package list] [ test cases]
| Package | Tests | Errors | Failures | Success Rate | Time |
|---|---|---|---|---|---|
| spellcast.beings | 7 | 0 | 0 | 100.00% | 0.56 |
| spellcast.enchantment | 16 | 0 | 0 | 100.00% | 0.38 |
| spellcast.game | 7 | 6 | 1 | 0.00% | 3.92 |
| spellcast.questions | 1 | 0 | 0 | 100.00% | 0.15 |
| spellcast.spell | 1 | 0 | 0 | 100.00% | 0.07 |
Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.
| Class | Tests | Errors | Failures | Success Rate | Time | |
|---|---|---|---|---|---|---|
|
| GameTest | 6 | 6 | 0 | 0.00% | 0.140 |
|
| KnifeTest | 1 | 0 | 1 | 0.00% | 3.776 |
| Class | Tests | Errors | Failures | Success Rate | Time | |
|---|---|---|---|---|---|---|
|
| SelectTargetQuestionTest | 1 | 0 | 0 | 100.00% | 0.150 |
[ summary] [ package list] [ test cases]
|
| testSetHitPoints | 0.31 |
|
| testSetMaxHitPoints | 0.00 |
|
| testShouldDie | 0.00 |
|
| testTakeDamage | 0.16 |
|
| testTakeDamageWithResistances | 0.01 |
|
| testUpdateEnchantments | 0.02 |
|
| testProperties | 0.02 |
|
| testAmnesiaEnchantment | 0.06 |
|
| testConfusionEnchantment | 0.03 |
|
| testCharmPersonEnchantment | 0.01 |
|
| testParalysisEnchantment | 0.01 |
|
| testFearEnchantment | 0.02 |
|
| testProtectionFromEvilEnchantment | 0.00 |
|
| testResistHeatEnchantment | 0.00 |
|
| testResistColdEnchantment | 0.00 |
|
| testDiseasedEnchantment | 0.02 |
|
| testPoisonedEnchantment | 0.02 |
|
| testBlindEnchantment | 0.02 |
|
| testInvisibleEnchantment | 0.04 |
|
| testHasteEnchantment | 0.05 |
|
| testTimeStopEnchantment | 0.03 |
|
| testDelayedEffectEnchantment | 0.04 |
|
| testPermanencyEnchantment | 0.03 |
|
| testNewGameIsNotStartedAndEmpty |
The validated object is null
| |
java.lang.IllegalArgumentException: The validated object is null at org.apache.commons.lang.Validate.notNull(Validate.java:256) at spellcast.game.Game.<init>(Game.java:69) at spellcast.game.GameTest.createOUT(GameTest.java:120) at spellcast.game.GameTest.testNewGameIsNotStartedAndEmpty(GameTest.java:24)
| |
|
| testGameHasFinished |
The validated object is null
| |
java.lang.IllegalArgumentException: The validated object is null at org.apache.commons.lang.Validate.notNull(Validate.java:256) at spellcast.game.Game.<init>(Game.java:69) at spellcast.game.GameTest.createOUT(GameTest.java:120) at spellcast.game.GameTest.testGameHasFinished(GameTest.java:32)
| |
|
| testAddingWizardsBeforeGameStarted |
The validated object is null
| |
java.lang.IllegalArgumentException: The validated object is null at org.apache.commons.lang.Validate.notNull(Validate.java:256) at spellcast.game.Game.<init>(Game.java:69) at spellcast.game.GameTest.createOUT(GameTest.java:120) at spellcast.game.GameTest.testAddingWizardsBeforeGameStarted(GameTest.java:39)
| |
|
| testAddingWizardsAfterGameStarted |
The validated object is null
| |
java.lang.IllegalArgumentException: The validated object is null at org.apache.commons.lang.Validate.notNull(Validate.java:256) at spellcast.game.Game.<init>(Game.java:69) at spellcast.game.GameTest.createOUT(GameTest.java:120) at spellcast.game.GameTest.testAddingWizardsAfterGameStarted(GameTest.java:50)
| |
|
| testRemovingWizardsBeforeGameStarted |
The validated object is null
| |
java.lang.IllegalArgumentException: The validated object is null at org.apache.commons.lang.Validate.notNull(Validate.java:256) at spellcast.game.Game.<init>(Game.java:69) at spellcast.game.GameTest.createOUT(GameTest.java:120) at spellcast.game.GameTest.testRemovingWizardsBeforeGameStarted(GameTest.java:72)
| |
|
| testRemovingWizardsAfterGameStarted |
The validated object is null
| |
java.lang.IllegalArgumentException: The validated object is null at org.apache.commons.lang.Validate.notNull(Validate.java:256) at spellcast.game.Game.<init>(Game.java:69) at spellcast.game.GameTest.createOUT(GameTest.java:120) at spellcast.game.GameTest.testRemovingWizardsAfterGameStarted(GameTest.java:83)
| |
|
| testKnife |
Expectation failure on verify: getRightHandGesture(): expected: 1, actual: 0 getLeftHandGesture(): expected: 1, actual: 0 addQuestion(spellcast.questions.SelectTargetQuestion@68c952[requiresATarget=spellcast.damage.KnifeAttack@110a478,id=0,question=question.selectTarget,answer=EasyMock for interface spellcast.beings.IWizard,answers=[EasyMock for interface spellcast.beings.IWizard, EasyMock for interface spellcast.beings.IWizard]]): expected: 1, actual: 0
| |
junit.framework.AssertionFailedError: Expectation failure on verify: getRightHandGesture(): expected: 1, actual: 0 getLeftHandGesture(): expected: 1, actual: 0 addQuestion(spellcast.questions.SelectTargetQuestion@68c952[requiresATarget=spellcast.damage.KnifeAttack@110a478,id=0,question=question.selectTarget,answer=EasyMock for interface spellcast.beings.IWizard,answers=[EasyMock for interface spellcast.beings.IWizard, EasyMock for interface spellcast.beings.IWizard]]): expected: 1, actual: 0 at org.easymock.internal.AbstractBehavior.verify(AbstractBehavior.java:63) at org.easymock.internal.ReplayState.verify(ReplayState.java:25) at org.easymock.MockControl.verify(MockControl.java:189) at spellcast.game.KnifeTest.testKnife(KnifeTest.java:77)
| |